<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" />
    <meta name="viewport" content="width=device-width" />
    <title>阿里大脑物料</title>
    <link rel="shortcut icon" href="./favicon.png" />
    <link
      href="https://dev.g.alicdn.com/platform/xmeterial/0.1.0/index.css"
      rel="stylesheet"
    />
  </head>

  <body>
    <div id="ice-container"></div>
    <script
      type="text/javascript"
      src="https://dev.g.alicdn.com/platform/xmeterial/0.1.0/index.js"
    ></script>
    <script>
      (function () {
        if (window.addEventListener) {
          window.addEventListener("load", () => {
            if ("serviceWorker" in navigator) {
              navigator.serviceWorker
                .register("./sw.js?t=3")
                .then((swReg) => {
                  console.log("sw.js 注册成功", swReg);
                })
                .catch((err) => {
                  console.error("serviceWorker注册期间发生错误:", error);
                });
            }
          });
        }
      })();
    </script>
  </body>
</html>
